package com.scs.application.modules.dept.service;

import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.dept.entity.OprtUseItem;
import com.scs.application.modules.dept.entity.UseDtl;
import com.scs.application.modules.dept.entity.UseMergeDtl;

import java.util.List;

/**
 * <p>
 *  Service
 * </p>
 */

public interface UseMergeDtlService extends IBaseService<UseMergeDtl> {

    /**
     *  自动合单
     * @param useMergeId
     * @return
     */
    boolean autoMerge(String useMergeId);

    /**
     *  自动合单(病人消耗单)
     * @param inpatientNo, useMergeId
     * @param flagLine
     * @param deptId
     * @return
     */
    boolean autoMergeOprtUse(String inpatientNo, String useMergeId, Boolean flagLine, String deptId);

    /**
     *  获取合单明细
     * @param useDtlList
     * @param useMergeId
     * @return
     */
    List<UseMergeDtl> getUseMergeDtlList(List<UseDtl> useDtlList, String useMergeId);


    /**
     *  获取合单明细
     * @param oprtUseItemList
     * @param useMergeId
     * @return
     */
    List<UseMergeDtl> getUseMergeDtlListByOprt(List<OprtUseItem> oprtUseItemList, String useMergeId);
}
